package com.tancire.net.domain;

import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 收益明细对象 crm_company_income_detail
 *
 * @author chenchao
 * @date 2023-12-30
 */
public class CrmCompanyIncomeDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 对应主收益
     */
    @Excel(name = "对应主收益")
    private Long taskId;

    /**
     * 对应客户
     */
    @Excel(name = "对应客户")
    private Long companyId;

    /**
     * 客户名字
     */
    @Excel(name = "客户名字")
    private String companyName;

    /**
     * 对应资源ID
     */
    @Excel(name = "对应资源ID")
    private Long sourceId;

    /**
     * 资源编码
     */
    @Excel(name = "资源编码")
    private String sourceCode;

    /**
     * 资源名称
     */
    @Excel(name = "资源编码")
    private String sourceName;

    /**
     * 激活量
     */
    @Excel(name = "激活量")
    private Integer activeCount;

    /**
     * 使用积分
     */
    @Excel(name = "使用积分")
    private BigDecimal usePoints;

    /**
     * 预估收益
     */
    @Excel(name = "预估收益")
    private BigDecimal incomeAmount;

    /**
     * 结算日期
     */
    @Excel(name = "结算日期")
    private String settlementDate;

    /**
     * 开始日期
     */
    private String startDate;

    /**
     * 结束日期
     */
    private String endDate;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public String getSourceCode() {
        return sourceCode;
    }

    public void setActiveCount(Integer activeCount) {
        this.activeCount = activeCount;
    }

    public Integer getActiveCount() {
        return activeCount;
    }

    public void setUsePoints(BigDecimal usePoints) {
        this.usePoints = usePoints;
    }

    public BigDecimal getUsePoints() {
        return usePoints;
    }

    public void setIncomeAmount(BigDecimal incomeAmount) {
        this.incomeAmount = incomeAmount;
    }

    public BigDecimal getIncomeAmount() {
        return incomeAmount;
    }

    public void setSettlementDate(String settlementDate) {
        this.settlementDate = settlementDate;
    }

    public String getSettlementDate() {
        return settlementDate;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("taskId", getTaskId())
                .append("companyId", getCompanyId())
                .append("companyName", getCompanyName())
                .append("sourceId", getSourceId())
                .append("sourceCode", getSourceCode())
                .append("activeCount", getActiveCount())
                .append("usePoints", getUsePoints())
                .append("incomeAmount", getIncomeAmount())
                .append("settlementDate", getSettlementDate())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
